
package hk.ces.oxfam.patch.util;

import java.util.Calendar;

/**
 *
 * @author ReutyCheng
 */
public class CalendarUtil
{
  private static final Calendar CALENDAR = Calendar.getInstance();

  private CalendarUtil()
  {
  }

  public static final java.util.Date getDate(int year, int month, int day)
  {
    Calendar clone = (Calendar) CALENDAR.clone();
    clone.set(Calendar.YEAR, year);
    clone.set(Calendar.MONTH, month);
    clone.set(Calendar.DAY_OF_MONTH, day);

    return clone.getTime();
  }
}
